// function getUuid() {
//     function S4() {
//         return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
//     }
//     return `${S4() + S4()}-${S4()}-${S4()}-${S4()}-${S4()}${S4()}${S4()}`
// }
// console.log(getUuid())

function formatPrice(value, point = 0) {
    let amount = {}
    const k = 10000
    const sizes = ['', '万', '亿', '万亿']
    let i
    if (value < k) {
        amount = `${value}`
    } else {
        i = Math.floor(Math.log(value) / Math.log(k))
        // eslint-disable-next-line no-restricted-properties
        amount = (value / Math.pow(k, i)).toFixed(point) + sizes[i]
    }
    return amount
}
console.info(formatPrice('1000000'))